package com.woniuxy.book87.mapper;

import com.woniuxy.book87.entity.Book;
import com.woniuxy.book87.vo.BookVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Book record);

    Book selectByPrimaryKey(Long id);

    List<Book> selectAll();

    int updateByPrimaryKey(Book record);

    List<BookVo> selectBookByNameAndType(@Param("tid") Integer typeId, @Param("name") String name);
}